package lhdx13;

public class DianShi implements GongN {
    private String colour;
    private int price;
    private double screen;

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public double getScreen() {
        return screen;
    }

    public void setScreen(double screen) {
        this.screen = screen;
    }

    public DianShi(String colour, int price, double screen) {
        this.colour = colour;
        this.price = price;
        this.screen = screen;
    }

    @Override
    public void startingUp(YaoKo A) {
        System.out.println(A.getColourS()+"的遥控器打开了"+colour+"的电视机。。。。。。");
    }

    @Override
    public void shutdown(YaoKo A) {
        System.out.println(A.getColourS()+"的遥控器关上了"+colour+"的电视机。。。。。。");
    }

    @Override
    public void change(YaoKo A) {
        System.out.println(A.getColourS()+"的遥控器给"+colour+"的电视机换台了。。。。。。");
    }
}
